import {createRouter, createWebHashHistory} from 'vue-router';
// 任务背包
import ren_wu_bei_bao from '@/components/ren_wu_bei_bao.vue'
// 人物属性
import ren_wu_shu_xing from '@/components/ren_wu_shu_xing.vue'
// 副本修行
import fu_ben_tan_suo from '@/components/fu_ben_tan_suo.vue'
// 宗门
import zong_men from '@/components/zong_men.vue'
// 大世界
import da_shi_jie from '@/components/da_shi_jie.vue'
// 修行主页
import xian from '@/components/xian.vue'
// 主页面
import main from '@/components/main.vue'
// 中间加载页
// import loading from '@/components/loading.vue'

const routes = [
    {
        path: "/",
        component: main,
        children: [
            {
                path: "/xian",
                component: xian
            },
            {
                path: "/ren_wu_shu_xing",
                component: ren_wu_shu_xing
            },
            {
                path: "/ren_wu_bei_bao",
                component: ren_wu_bei_bao
            },
            {
                path: "/zong_men",
                component: zong_men
            },
            {
                path: "/fu_ben_tan_suo",
                component: fu_ben_tan_suo
            },
            {
                path: "/da_shi_jie",
                component: da_shi_jie
            }
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router

